def T(S):
    if S<=3500:
        return S
    A=S-3500
    if A<=1500:
        return S-A*0.03
    elif A<=4500:
        return S-1500*0.03-(A-1500)*0.1
    elif A<=9000:
        return S-1500*0.03-(4500-1500)*0.1-(A-4500)*0.2
    elif A<=35000:
        return S-1500*0.03-(4500-1500)*0.1-(9000-4500)*0.2-(A-9000)*0.25
    elif A<=55000:
        return S-1500*0.03-(4500-1500)*0.1-(9000-4500)*0.2-(35000-9000)*0.25-(A-35000)*0.3
    elif A<=80000:
        return S-1500*0.03-(4500-1500)*0.1-(9000-4500)*0.2-(35000-9000)*0.25-(55000-35000)*0.3-(A-55000)*0.35
    else:
        return S-1500*0.03-(4500-1500)*0.1-(9000-4500)*0.2-(35000-9000)*0.25-(55000-35000)*0.3-(80000-55000)*0.35-(A-80000)*0.45


S=int(input())

for i in range(0,1001):
    result=i*100
    t=int(T(result))
    if t==S:
        print(result)
        exit(0)